package com.kma.summer2012.client.services.user;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.kma.summer2012.shared.model.UICrumbsUser;

import java.util.List;

public interface CrumbsUserServiceAsync {
    void getById(int id, AsyncCallback<UICrumbsUser> async);

    void getByLoginPassword(String login, String password, AsyncCallback<UICrumbsUser> async);

    void getAllUsers(AsyncCallback<List<UICrumbsUser>> async);

    void getAllEngineers(AsyncCallback<List<UICrumbsUser>> async);

    void getByLogin(String login, AsyncCallback<UICrumbsUser> async);

    void sendMailRecovery(String mail, String path, AsyncCallback<Boolean> async);

    void update(int id, String password, AsyncCallback async);

    void checkLogin(AsyncCallback<UICrumbsUser> async);

    void logout(AsyncCallback<Void> async);

    void login(UICrumbsUser user, AsyncCallback<Void> async);
}
